<?
foreach ($_POST as $var => $value) { 
	$$var = $value; 
} 

foreach ($_GET as $var => $value) { 
	$$var = $value; 
}
?>